package chatGUI;

import java.awt.Color;

import javax.swing.*;



/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
/**
* Window for private conversations. 
* Use onglets.
*/
public class ConversationFrame extends javax.swing.JFrame {
	protected JTabbedPane ongletChat;
	protected JButton send;
	protected JButton closeTab;
	protected JButton browseButton;
	protected JTextArea textArea;
	protected JScrollPane textScroll;
	protected JLabel textLabel;
	protected JLabel roomLabel;

	/**
	* Constructor
	*/
		
	public ConversationFrame() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			GroupLayout thisLayout = new GroupLayout((JComponent)getContentPane());
			getContentPane().setLayout(thisLayout);
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			this.setLocationRelativeTo(null);
			this.setResizable(false);
			getContentPane().setBackground(new java.awt.Color(77,77,77));
			this.setTitle("Chat with ...");
			{
				ongletChat = new JTabbedPane();
			}
			{
				roomLabel = new JLabel();
				roomLabel.setText("Private Room ");
				roomLabel.setForeground(new java.awt.Color(213,125,69));
				roomLabel.setFont(new java.awt.Font("FreeMono",1,26));
			}
			{
				textLabel = new JLabel();
				textLabel.setText("Your text");
				textLabel.setFont(new java.awt.Font("Andale Mono",0,14));
				textLabel.setForeground(new java.awt.Color(255,255,255));
			}
			{
				closeTab = new JButton();
				closeTab.setText("X");
				closeTab.setForeground(new java.awt.Color(0,0,0));
				closeTab.setFont(new java.awt.Font("Andale Mono",1,10));
				closeTab.setBackground(new java.awt.Color(213,125,69));
			}
			{
				browseButton = new JButton();
				browseButton.setText("Browse");
			}
			{
				textScroll = new JScrollPane();
				{
					textArea = new JTextArea();
					textScroll.setViewportView(textArea);
				}
			}
			{
				send = new JButton();
				send.setText("Send");
			}
			thisLayout.setVerticalGroup(thisLayout.createSequentialGroup()
				.addContainerGap()
				.addGroup(thisLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)
				    .addComponent(roomLabel, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				    .addComponent(closeTab, GroupLayout.Alignment.BASELINE, GroupLayout.PREFERRED_SIZE, 22, GroupLayout.PREFERRED_SIZE))
				.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				.addComponent(ongletChat, GroupLayout.PREFERRED_SIZE, 393, GroupLayout.PREFERRED_SIZE)
				.addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
				.addComponent(textLabel, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)
				.addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)
				.addGroup(thisLayout.createParallelGroup()
				    .addGroup(thisLayout.createSequentialGroup()
				        .addComponent(textScroll, GroupLayout.PREFERRED_SIZE, 71, GroupLayout.PREFERRED_SIZE))
				    .addGroup(GroupLayout.Alignment.LEADING, thisLayout.createSequentialGroup()
				        .addComponent(send, GroupLayout.PREFERRED_SIZE, 26, GroupLayout.PREFERRED_SIZE)
				        .addGap(20)
				        .addComponent(browseButton, GroupLayout.PREFERRED_SIZE, 25, GroupLayout.PREFERRED_SIZE)))
				.addContainerGap(26, Short.MAX_VALUE));
			thisLayout.setHorizontalGroup(thisLayout.createSequentialGroup()
				.addContainerGap()
				.addGroup(thisLayout.createParallelGroup()
				    .addGroup(thisLayout.createSequentialGroup()
				        .addGroup(thisLayout.createParallelGroup()
				            .addComponent(textScroll, GroupLayout.Alignment.LEADING, GroupLayout.PREFERRED_SIZE, 464, GroupLayout.PREFERRED_SIZE)
				            .addGroup(GroupLayout.Alignment.LEADING, thisLayout.createSequentialGroup()
				                .addComponent(roomLabel, GroupLayout.PREFERRED_SIZE, 218, GroupLayout.PREFERRED_SIZE)
				                .addGap(246))
				            .addGroup(GroupLayout.Alignment.LEADING, thisLayout.createSequentialGroup()
				                .addComponent(textLabel, GroupLayout.PREFERRED_SIZE, 88, GroupLayout.PREFERRED_SIZE)
				                .addGap(376)))
				        .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)
				        .addGroup(thisLayout.createParallelGroup()
				            .addComponent(send, GroupLayout.Alignment.LEADING, 0, 98, Short.MAX_VALUE)
				            .addComponent(browseButton, GroupLayout.Alignment.LEADING, 0, 98, Short.MAX_VALUE)
				            .addGroup(GroupLayout.Alignment.LEADING, thisLayout.createSequentialGroup()
				                .addGap(0, 55, Short.MAX_VALUE)
				                .addComponent(closeTab, GroupLayout.PREFERRED_SIZE, 43, GroupLayout.PREFERRED_SIZE))))
				    .addComponent(ongletChat, GroupLayout.Alignment.LEADING, 0, 574, Short.MAX_VALUE))
				.addContainerGap());
			pack();
			this.setSize(600, 600);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
